package net.cloudcodex.client.widgets;




public class CampaignAvatar extends Avatar {
	
	public CampaignAvatar() {
		super();
	}

	public CampaignAvatar(String imageURL, String name) {
		this();
		initComponent(imageURL, name, true);
		
	}
	public CampaignAvatar (String imageURL, String name,boolean withName){
		this();
		initComponent(imageURL, name, withName);
	}

	public void initComponent(String imageURL, String name, boolean withName) {
		setImageURL(imageURL);
		setName(name);
		defaultImageURL();
		setWithName(withName);
		init();
		setIconeStyleName("campaignIconeAvatar");
		setNameStyleName("campaignNameAvatar");
	}


	@Override
	protected void defaultImageURL() {
		setDefaultImageURL("images/avatar/campaign/default.png");
		
	}




}
